﻿using System;

namespace MathExpression
{
    class MathExpression
    {
        static void Main()
        {
            double n = double.Parse(Console.ReadLine());
            double m = double.Parse(Console.ReadLine());
            double p = double.Parse(Console.ReadLine());

            double first = (n * n) + (1 / m * p) + 1337;
            double second = n - (128.523123123 * p);
            double third = Math.Sin(((int)m) % 180);

            double result = (first / second) + third;

            Console.WriteLine("{0:F6}",result);
        }
    }
}
